package kr.totalcall.view.receive.vo
{
	/**
	 * 작업 기록
	 * 2012. 7. 13. / 이규광 / 최초 작성.
	 */
	/**
	 * 내용.
	 * @productversion Flex 4.5
	 * @langversion ActionScript 3.0
	 * @playerversion Flash 10.2
	 * @author 이규광.
	 */
	[Bindable]
	public class ReceiveVO
	{
		
		public var color:Number;
		
		public var num:String;
		public var status:String;
		
		public var cnum1:String;
		public var cnum2:String;
		public var cnum3:String;
		
		public var cname1:String;
		public var cname2:String;
		public var cname3:String;
		
		public var department:String;
		public var person:String;
		
		public var start_sido:String;
		public var start_gugun:String;
		public var start_dong:String;
		public var start_etc:String;
		public var start_position:String;
		
		public var end_sido:String;
		public var end_gugun:String;
		public var end_dong:String;
		public var end_etc:String;
		public var end_position:String;
		
		public var datetime:String;
		
		public var reserve:String;
		public var reserve_date:String;
		public var reserve_ampm:String;
		public var reserve_hour:String;
		public var reserve_minute:String;
		
		public var shuttle:String;
		public var quick:String;
		public var auto:String;
		public var weight:String;
		public var payment:String;
		
		public var driver_num:String;
		public var driver_name:String;
		public var driver_num1:String;
		public var driver_num2:String;
		public var driver_num3:String;
		public var driver_datetime:String;
		public var driver_position:String;
		
		public var sign:String;
		
		public var fare_type:String;
		public var fare:String;
		public var fare_origin:String;
		public var fare_weight:String;
		public var fare_night:String;
		public var fare_rain:String;
		public var fare_holiday:String;
		public var fare_discount:String;
		public var fare_:String;
		
		public var consign_:String;
		public var individual:String;
		public var start:String;
		public var pickup_time:String;
		public var end:String;
		public var comment:String;
		public var member:String;
		public var member_id:String;
		public var modify:String;
		public var modify_id:String;
		public var branch_num:String;
		public var branch_name:String;
		public var share:String;
		public var callpass_yn:String;
		public var callpass_confirm_yn:String;
		public var callpass_branch_name:String;
		public var callpass_branch_num:String;
		public var callpass_fare:String;
		public var del:String;
		public var bak:String;
		public var elapse:String;
		public var consign_format:String;
		public var fare_format:String;
		
		public var internet_req_yn:String ;
		
		public var credit_aply_yn:String ;
		
		public var client_dong_num:String;
		
		
		/**
		 * 생성자
		 */
		public function ReceiveVO(item:XML)
		{
			
			for each(var x:XML in item.children()){
				try{
					//trace(x.localName() + x);
					if(!x || x.localName() == null || x.localName() == "null"){
						continue;
					}
					this[x.localName()] = x;
				}catch(error:Error){
					trace(error.message);
				}
			}
			
			/*
			var list:XMLList = item.children();
			
			for (var propertyName:String in list) {
				trace("propertyName:" + propertyName);
				try{
				this[propertyName] = list[propertyName];
				}catch(e:Error){
					trace(propertyName + "을 찾을 수 없습니다.");
				}
			}*/
		}
	}
}